/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.banner;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * bannerEntity
 * @author 兰正军
 * @version 2017-11-27
 */
public class EduBanner extends DataEntity<EduBanner> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 类型
	private String businessId;		// 业务ID
	private String img;		// 图片
	private String place;		// 所在位置
	private String url;		// 路径
	private String recommendName;		// 推荐位名称
	private String status;		// 状态
	private String recommendDate;		// 推荐时间
	
	public EduBanner() {
		super();
	}

	public EduBanner(String id){
		super(id);
	}

	@Length(min=0, max=10, message="类型长度必须介于 0 和 10 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="业务ID长度必须介于 0 和 64 之间")
	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}
	
	@Length(min=0, max=512, message="图片长度必须介于 0 和 512 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	@Length(min=0, max=11, message="所在位置长度必须介于 0 和 11 之间")
	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}
	
	@Length(min=0, max=512, message="路径长度必须介于 0 和 512 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=64, message="推荐位名称长度必须介于 0 和 64 之间")
	public String getRecommendName() {
		return recommendName;
	}

	public void setRecommendName(String recommendName) {
		this.recommendName = recommendName;
	}
	
	@Length(min=0, max=10, message="状态长度必须介于 0 和 10 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=64, message="推荐时间长度必须介于 0 和 64 之间")
	public String getRecommendDate() {
		return recommendDate;
	}

	public void setRecommendDate(String recommendDate) {
		this.recommendDate = recommendDate;
	}
	
}